package com.education.welco.mapper;


import com.education.welco.pojo.SAnswerUser;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 点赞用户中间表 数据层
 *
 * @author d
 * @date 2020-05-21 10:50:11
 */
@Repository
public interface SAnswerUserMapper {

    //查询点赞用户中间表信息
    public SAnswerUser selectSAnswerUserById(Integer id);

    // 查询点赞用户中间表列表
    public List<SAnswerUser> selectSAnswerUserList(SAnswerUser sAnswerUser);

    // 新增点赞用户中间表
    public int insertSAnswerUser(SAnswerUser sAnswerUser);

    //修改点赞用户中间表
    public int updateSAnswerUser(SAnswerUser sAnswerUser);

    //删除点赞用户中间表
    public int deleteSAnswerUserById(Integer id);

    // 批量删除点赞用户中间表
    public int deleteSAnswerUserByIds(String[] ids);

    //根据userid和answerid删除
    public int deleteSAnswerUserByUserIdAndAnswerId(SAnswerUser sAnswerUser);
}